package com.cp.service;

import com.cp.repository.WordFrqMi;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

@CacheConfig(cacheNames = "wordFrqMiCache")
public interface WordFrqMiService {

	@Cacheable
	List<WordFrqMi> getByConvictionId(Integer convictionId);

	@Cacheable
	List<WordFrqMi> getByConvictionIdAndClassRelationId(Integer convictionId, Integer classRelationId);
}
